/*=============================================
=            NLarchive Brand CSS            =
=============================================*/

/*----------  1. Variables & Reset  ----------*/

:root {
    /* Brand Colors */
    --primary-color: #1d3557; /* Dark blue as primary for trust and professionalism */
    --secondary-color: #457b9d; /* Medium blue for secondary elements */
    --accent-color: #e63946; /* Bright red as accent for CTAs and key highlights */
    --dark-color: #0a0a0a; /* Near black for text and backgrounds */
    --light-color: #f8f9fa; /* Off-white for light backgrounds */
    --light-gray-color: #e9ecef; /* Light gray for subtle backgrounds */
    
    /* Status Colors */
    --success-color: #2a9d8f; /* Teal for success messages */
    --warning-color: #e9c46a; /* Amber for warnings */
    --danger-color: #e63946; /* Red for errors/danger */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Animation */
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global anchor tag reset to prevent browser default underlines */
a {
    text-decoration: none;
    color: inherit;
}

a:hover,
a:visited,
a:focus,
a:active {
    text-decoration: none;
}

html {
    font-size: 100%; /* 16px base for rem calculations */
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray-color);
    overflow-x: hidden; /* Prevent horizontal overflow at the root level */
}

body {
    font-family: var(--font-primary);
    font-size: 1rem; /* 16px */
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    /* Add padding-top equal to header height to prevent content from being hidden under header */
    padding-top: 5rem; /* 80px */
}

/*----------  2. Layout & Containers  ----------*/

.container {
    width: 100%;
    max-width: 75rem; /* 1200px */
    margin: 0 auto;
    padding: 0 1.875rem; /* 30px */
    box-sizing: border-box;
}

.section {
    padding: 7.5rem 0; /* 120px */
}

.section-header {
    text-align: center;
    margin-bottom: 5rem; /* 80px */
    max-width: 50rem; /* 800px */
    margin-left: auto;
    margin-right: auto;
}

/* First section after hero should have less top padding */
.about.section {
    padding-top: 6.25rem; /* 100px */
}

/*----------  3. Typography  ----------*/

.section-title {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.9375rem; /* 15px */
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--gray-color);
    font-family: var(--font-secondary);
    font-weight: 400;
    max-width: 37.5rem; /* 600px */
    margin-left: auto;
    margin-right: auto;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
}

/* Light-themed sections with dark backgrounds */
.services .section-title,
.examples.section .section-title,
.mission .section-title {
    color: var(--light-color);
}

.services .section-subtitle,
.examples.section .section-subtitle {
    color: #9ea7b3; /* Lighter gray for dark background */
}

/*----------  4. Navigation & Header  ----------*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-width: 0;
    z-index: 100;
    transition: var(--transition);
    padding: 1.25rem 0; /* 20px */
    background-color: transparent;
    /* Prevent header from being cut off when zoomed */
    box-sizing: border-box;
    /* Prevent header from being cut off on zoom */
    overflow-x: visible;
}

.header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.625rem 0; /* 10px */
}

.header .container {
    width: 100%;
    max-width: 75rem; /* 1200px */
    margin: 0 auto;
    padding: 0 1.875rem; /* 30px */
    /* Add min-width to prevent content overflow on zoom */
    min-width: 0;
}
.logo {
    font-size: 1.75rem; /* 28px */
    font-weight: 700;
    color: var(--light-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-text .accent {
    color: var(--accent-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-menu {
    display: flex;
    list-style: none;
}
.nav-link {
    font-size: 1.0625rem; /* 17px */
    color: var(--light-color);
    text-decoration: none;
    padding: 0.625rem 1.25rem; /* 10px 20px */
    transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}
.nav-link:hover {
    color: var(--accent-color);
}
.nav-link:hover::after {
    width: 30%;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-color);
    transition: var(--transition);
}

/* Language Switcher */
.language-switcher-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--secondary-color);
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: var(--border-radius, 5px);
    font-size: 0.9em; /* Keep em for relative sizing within button */
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 500;
}

.lang-btn:hover {
    background-color: var(--accent-color-hover);
    color: var(--white);
}

/* Mobile adjustments for language switcher */
@media (max-width: 768px) {
    .language-switcher-container {
        margin: 10px 0 0;
        justify-content: center;
    }
}

/*----------  5. Buttons & CTAs  ----------*/

.btn {
    display: inline-block;
    padding: 0.9375rem 2.1875rem; /* 15px 35px */
    border-radius: 50px;
    font-size: 1rem; /* 16px */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background-color: #c1272d; /* Darker red on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
}

.btn-secondary {
    background-color: rgba(230, 57, 70, 0.5);
    color: var(--light-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.cta-buttons {
    display: flex;
    gap: 1.25rem; /* 20px */
    flex-wrap: wrap;
    justify-content: flex-start;
}


/*----------  6. Hero Section  ----------*/

.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem; /* 80px */
    background-color: var(--dark-color);
    color: var(--light-color);
    box-sizing: border-box;
 }

.hero .container {
    width: 100%;
    max-width: 75rem; /* 1200px */
    margin: 0 auto;
    padding: 0 1.875rem; /* 30px */
    box-sizing: border-box;
}

.hero-content {
    max-width: 37.5rem; /* 600px */
    animation-delay: 0.3s;
}

.hero h1 {
    font-size: 3.4375rem; /* 55px */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.875rem; /* 30px */
    color: var(--light-color);
}

.hero p {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 3.125rem; /* 50px */
    color: var(--gray-color);
    max-width: 31.25rem; /* 500px */
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 40%;
    height: 60%;
}

.geometric-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: floatAnimation 6s infinite ease-in-out;
}

.shape-1 {
    width: 18.75rem; /* 300px */
    height: 18.75rem; /* 300px */
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    top: 0;
    left: 0;
    opacity: 0.7;
    animation-delay: 0s;
}

.shape-2 {
    width: 12.5rem; /* 200px */
    height: 12.5rem; /* 200px */
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    bottom: 0;
    right: 0;
    opacity: 0.5;
    animation-delay: 2s;
}

.shape-3 {
    width: 9.375rem; /* 150px */
    height: 9.375rem; /* 150px */
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    bottom: 50%;
    left: 30%;
    opacity: 0.3;
    animation-delay: 4s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3.125rem; /* 50px */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem; /* 10px */
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--light-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    background-color: var(--light-color);
    width: 6px;
    height: 10px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    animation: wheel 1.5s infinite;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--light-color);
    border-right: 2px solid var(--light-color);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

/*----------  11. Social Proof Section  ----------*/

.social-proof {
    background-color: var(--light-gray-color);
    padding: 6.25rem 0; /* 100px */
}

.testimonials {
    margin-bottom: 5rem; /* 80px */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); /* 300px */
    gap: 1.875rem; /* 30px */
}

.testimonial-card {
    background-color: white;
    padding: 2.5rem; /* 40px */
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    position: relative;
    padding: 0 1.25rem; /* 20px */
    margin-bottom: 1.875rem; /* 30px */
    flex-grow: 1;
}

.testimonial-quote i.fa-quote-left {
    position: absolute;
    top: -0.625rem; /* 10px */
    left: 0;
    font-size: 1.5625rem; /* 25px */
    color: var(--accent-color);
    opacity: 0.2;
}

.testimonial-quote i.fa-quote-right {
    position: absolute;
    bottom: -0.625rem; /* 10px */
    right: 0;
    font-size: 1.5625rem; /* 25px */
    color: var(--accent-color);
    opacity: 0.2;
}

.testimonial-quote p {
    font-style: italic;
    color: var(--gray-color);
    line-height: 1.8;
    font-size: 1.0625rem; /* 17px */
}

.testimonial-author {
    text-align: center;
    margin-top: auto;
}

.testimonial-author h4 {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 0.3125rem; /* 5px */
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 0.875rem; /* 14px */
    color: var(--secondary-color);
}

.client-logos {
    text-align: center;
}

.client-logos-title {
    font-size: 1.375rem; /* 22px */
    color: var(--primary-color);
    margin-bottom: 2.5rem; /* 40px */
    font-weight: 600;
}

.logos-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem; /* 40px */
}

.logo-item {
    opacity: 0.7;
    transition: var(--transition);
}

.logo-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.placeholder-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem; /* 10px */
    color: var(--secondary-color);
}

.placeholder-logo i {
    font-size: 1.875rem; /* 30px */
}

.placeholder-logo span {
    font-size: 0.875rem; /* 14px */
}

/*----------  12. Contact Section  ----------*/

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.75rem; /* 60px */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* 40px */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5625rem; /* 25px */
}

.contact-icon {
    font-size: 1.5625rem; /* 25px */
    color: var(--accent-color);
    width: 3.75rem; /* 60px */
    height: 3.75rem; /* 60px */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
}

.contact-text {
    flex: 1; /* Allow it to take remaining space if .contact-item is flex */
    min-width: 0; /* Crucial for flex item shrinking & grid item shrinking */
}

.contact-text h3 {
    font-size: 1.375rem; /* 22px */
    margin-bottom: 0.625rem; /* 10px */
}

.contact-text p, 
.contact-text a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
    overflow-wrap: break-word; /* Handles long strings within the text */
    word-break: normal; /* Use with overflow-wrap */
}

.contact-text a:hover {
    color: var(--accent-color);
}

.contact-form {
    background-color: white;
    padding: 3.125rem; /* 50px */
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.875rem; /* 30px */
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem; /* 10px */
    font-weight: 500;
    font-size: 1rem; /* 16px */
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.9375rem; /* 15px */
    border: 1px solid var(--dark-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem; /* 16px */
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

/* Styles for Contact Form Fallback UI */
.contact-form-fallback-ui {
    background-color: white;
    padding: 1.875rem; /* 30px */
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 1.875rem auto; /* 30px */
    border: 1px solid var(--light-gray-color);
    max-width: 700px; /* Keep px for max-width */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden; /* Prevent children from causing horizontal overflow */
}

.contact-form-fallback-ui h3 {
    font-size: 1.5rem; /* 24px */
    color: var(--primary-color);
    margin-bottom: 0.9375rem; /* 15px */
    text-align: center;
    width: 100%;
}

.contact-form-fallback-ui > p {
    font-size: 1rem; /* 16px */
    color: var(--gray-color);
    margin-bottom: 1.5625rem; /* 25px */
    line-height: 1.6;
    text-align: center;
    width: 100%;
    max-width: 500px; /* Keep px for max-width */
}

/* Container for the main "Open Email" button */
.email-app-container {
    width: 100%;
    margin-bottom: 1.5625rem; /* 25px */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main email action button */
.btn-email-app {
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5625rem; /* 12px 25px */
    border-radius: 50px;
    font-size: 1rem; /* 16px */
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px; /* Keep px for max-width */
    box-shadow: var(--shadow-sm);
}

.btn-email-app:hover {
    background-color: #c1272d;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-email-app i {
    margin-right: 0.5rem; /* 8px */
}

/* Helper text under the button */
.email-app-helper {
    font-size: 0.8125rem; /* 13px */
    color: var(--gray-color);
    text-align: center;
    margin-top: 0.625rem; /* 10px */
    width: 100%;
    max-width: 400px; /* Keep px for max-width */
}

/* Divider */
.email-divider {
    width: 100%;
    border: none;
    border-top: 1px solid var(--light-gray-color);
    margin: 0.625rem 0 1.5625rem; /* 10px 0 25px */
    position: relative;
}

.email-divider::before {
    content: "o";
    position: absolute;
    top: -0.625rem; /* -10px */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 0 0.625rem; /* 0 10px */
    color: var(--gray-color);
    font-size: 0.875rem; /* 14px */
}

/* Alternative methods container */
.fallback-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* 20px */
}

.fallback-option {
    background-color: var(--light-color);
    padding: 1.25rem; /* 20px */
    border-radius: 0.625rem; /* 10px */
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray-color);
    width: 100%;
}

.fallback-option h4 {
    font-size: 1.0625rem; /* 17px */
    color: var(--dark-color);
    margin-bottom: 1.25rem; /* 20px */
    text-align: center;
    font-weight: 600;
}

/* Copy detail containers */
.copy-containers {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem; /* 15px */
}

.copy-detail {
    display: grid;
    grid-template-columns: auto 1fr; /* Changed from 1fr auto */
    align-items: center;
    background-color: white;
    padding: 0.75rem; /* 12px */
    border-radius: 8px;
    border: 1px solid var(--light-gray-color);
    width: 100%;
}

.copy-detail span {
    font-size: 0.9375rem; /* 15px */
    color: var(--dark-color);
    overflow-wrap: break-word; /* Consistent handling of long strings */
    padding-right: 0.625rem; /* 10px */
    min-width: 0; /* Allow the span to shrink and wrap within the grid cell */
}

/* Copy buttons */
.btn-copy {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 0.9375rem; /* 8px 15px */
    border-radius: 6px;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    min-width: 120px; /* Keep px for min-width */
    justify-content: center;
}

.btn-copy:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-copy i {
    margin-right: 0.375rem; /* 6px */
}

/* Message preview container */
.message-container {
    margin-top: 0.9375rem; /* 15px */
    width: 100%;
    min-width: 0; /* Help flex/grid parents size this correctly */
}

.message-preview {
    background-color: white;
    padding: 0.9375rem; /* 15px */
    border-radius: 8px;
    border: 1px solid var(--light-gray-color);
    width: 100%;
    min-width: 0; /* Help flex/grid parents size this correctly */
}

.message-preview h5 {
    font-size: 1rem; /* 16px */
    color: var(--primary-color);
    margin-bottom: 0.625rem; /* 10px */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.message-preview h5 .btn-copy {
    font-size: 0.8125rem; /* 13px */
    padding: 0.375rem 0.75rem; /* 6px 12px */
}

pre.message-preview { /* Changed selector from .message-preview pre */
    /* Sizing and Box Model */
    width: 100%;                 /* Occupy full width of its parent (.message-preview) */
    max-width: 100%;             /* Prevent it from exceeding parent's width */
    box-sizing: border-box;      /* Include padding and border in the element's total width and height */
    margin: 0;                   /* Reset default margins */
    padding: 0.9375rem; /* 15px */

    /* Text Behavior - CRUCIAL for wrapping and preserving format */
    white-space: pre-wrap;       /* Preserves whitespace & newlines, AND wraps text to fit container width */
    overflow-wrap: break-word;   /* Allows breaking long words/strings (like emails/URLs) if they would overflow */
    word-wrap: break-word;       /* Alias for overflow-wrap for broader browser compatibility */

    /* Visual Styling */
    font-family: var(--font-secondary);
    font-size: 0.9375rem; /* 15px */
    line-height: 1.6;            /* Added for better readability of wrapped lines */
    color: var(--gray-color);
    background-color: var(--light-color);
    border-radius: 6px;
    border: 1px solid var(--light-gray-color); /* Use CSS variable */
    overflow-x: auto;            /* Adds a horizontal scrollbar ONLY if content is still too wide after all wrapping attempts */
}

/* Bottom action container */
.fallback-actions {
    margin-top: 1.5625rem; /* 25px */
    width: 100%;
}

.btn-compose-another {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 0.75rem 1.25rem; /* 12px 20px */
    border-radius: 50px;
    font-size: 1rem; /* 16px */
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px; /* Keep px for max-width */
    margin: 0 auto;
}

.btn-compose-another:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-compose-another i {
    margin-right: 0.5rem; /* 8px */
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 768px) {
    
    .copy-detail {
        grid-template-columns: 1fr;
        gap: 0.625rem; /* 10px */
    }
    
    .btn-copy {
        width: 100%;
        justify-content: center;
    }
    
    .message-preview h5 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem; /* 10px */
    }
    
    .message-preview h5 .btn-copy {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.9375rem; /* 15px */
        padding-right: 0.9375rem; /* 15px */
    }

    .contact-form-fallback-ui {
        padding: 0.9375rem; /* 15px */
        /* Removed margin-left, margin-right, and width: calc() */
        /* It will now use width: 100% and margin: 3rem auto from base, effectively filling its parent */
    }
    
    .contact-form-fallback-ui h3 {
        font-size: 1.25rem; /* 20px */
    }
    
    .contact-form-fallback-ui > p {
        font-size: 0.9375rem; /* 15px */
    }
    
    .fallback-option {
        padding: 0.9375rem; /* 15px */
    }
    
    .fallback-option h4 {
        font-size: 1rem; /* 16px */
    }
    
    .btn-email-app, 
    .btn-compose-another {
        font-size: 0.9375rem; /* 15px */
        padding: 0.625rem 0.9375rem; /* 10px 15px */
    }
}

/* Ensure focused elements have visible focus indicators for accessibility */
.btn-email-app:focus,
.btn-copy:focus,
.btn-compose-another:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/*----------  13. Footer  ----------*/

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 6.25rem 0 1.875rem; /* 100px 0 30px */
    width: 100%;
    margin-top: 1.875rem; /* 30px */
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem; /* 80px */
    margin-bottom: 3.75rem; /* 60px */
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* 20px */
}

.footer-logo .logo-text {
    color: white;
    font-size: 1.875rem; /* 30px */
}

.footer-logo p {
    color: var(--light-gray-color);
    max-width: 18.75rem; /* 300px */
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem; /* 30px */
}

.footer-column h3 {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 1.875rem; /* 30px */
    position: relative;
    color: #ffffff !important;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -0.9375rem; /* -15px */
    left: 0;
    width: 3.75rem; /* 60px */
    height: 3px;
    background-color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.9375rem; /* 15px */
}

.footer-column a {
    color: var(--light-gray-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 0.75rem; /* 12px */
    margin-top: 1.25rem; /* 20px */
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8125rem; /* 45px */
    height: 2.8125rem; /* 45px */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: rgba(230, 57, 71, 0.109);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 1.875rem; /* 30px */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--light-gray-color);
    font-size: 0.875rem; /* 14px */
}

/* Legal Links */
.legal-links {
    display: flex;
    gap: 1.25rem; /* 20px */
    margin-top: 0.9375rem; /* 15px */
}

.legal-links a {
    color: var(--light-gray-color);
    text-decoration: none;
    font-size: 0.875rem; /* 14px */
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--accent-color);
}

/*----------  14. Modals  ----------*/

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(5px);
}

.modal-container.active {
    opacity: 1;
    visibility: visible;
}

.modal-container.active .service-modal {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5625rem 1.875rem; /* 25px 30px */
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    z-index: -1;
}

.modal-header h3 {
    font-size: 1.375rem; /* 22px */
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem; /* 10px */
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem; /* 20px */
    cursor: pointer;
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-content {
    background-color: white;
    padding: 0;
    display: flex;
    overflow-y: auto;
    max-height: calc(90vh - 5rem); /* 80px */
    border: none;
    border-radius: 0 0 10px 10px;
}

.modal-description {
    padding: 2.5rem; /* 40px */
    flex: 1;
    min-width: 60%;
    background-color: white;
}

.modal-description > p {
    color: var(--gray-color);
    margin-bottom: 1.875rem; /* 30px */
    font-size: 1rem; /* 16px */
    line-height: 1.7;
}

.modal-content h4 {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 1.25rem; /* 20px */
    color: var(--dark-color);
    position: relative;
}

.modal-content h4::after {
    content: '';
    position: absolute;
    bottom: -0.625rem; /* -10px */
    left: 0;
    width: 3.125rem; /* 50px */
    height: 3px;
    background-color: var(--primary-color);
}

.modal-image {
    min-width: 40%;
    background-color: var(--light-gray-color);
    position: relative;
}

.image-container {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-cta {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    padding: 2.1875rem; /* 35px */
    border-radius: 8px;
    text-align: center;
    margin-top: 2.5rem; /* 40px */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.modal-cta::before {
    content: '';
    position: absolute;
    top: -30px; /* Keep px */
    right: -30px; /* Keep px */
    width: 100px; /* Keep px */
    height: 100px; /* Keep px */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.modal-cta h4 {
    margin-bottom: 0.9375rem; /* 15px */
    text-align: center;
    color: white;
}

.modal-cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.modal-cta .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: var(--accent-color);
    color: white;
}

.modal-cta h4::after {
    display: none;
}

/*----------  15. UI Elements & Effects  ----------*/

/* Custom image styles */
.about-image, .mission-image {
    /* Add placeholder gradients until actual images are added */
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* Lazy Loading Images */
img[data-src], [data-bg-src] {
    opacity: 0.3;
    transition: opacity 0.5s ease-in-out;
}

img.loaded, [data-bg-src].loaded {
    opacity: 1;
}

/* Animation for scroll indicators */
@keyframes wheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Reveal text animations */
.reveal-text {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*----------  16. Responsive Styles  ----------*/

@media (max-width: 1200px) {
    html {
        font-size: 100%; /* Keep 16px base */
    }
    
    .container {
        max-width: 75rem; /* 1200px */
    }

    .hero-visual {
        width: 35%;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 100%; /* Keep 16px base */
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3.125rem; /* 50px */
    }

    .section {
        padding: 6.25rem 0; /* 100px */
    }
    
    .hero h1 {
        font-size: 2.875rem; /* 46px */
    }
    
    .section-title {
        font-size: 2.25rem; /* 36px */
    }

    .header {
        padding: 0.9375rem 0; /* 15px */
    }
    .header .container {
        padding: 0 0.9375rem; /* 15px */
    }
    body {
        padding-top: 4.375rem; /* 70px */
    }
}

@media (max-width: 768px) {
    html {
        font-size: 100%; /* Keep 16px base */
    }
    
    .section {
        padding: 5rem 0; /* 80px */
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 101;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        margin: 0.9375rem 0; /* 15px */
        color: var(--light-color);
        font-size: 1.125rem; /* 18px */
    }
    
    .nav-toggle {
        display: flex;
        z-index: 102;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--light-color);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--light-color);
    }
    
    .section-header {
        margin-bottom: 3.75rem; /* 60px */
    }
    
    .hero h1 {
        font-size: 2.5rem; /* 40px */
    }
    
    .section-title {
        font-size: 2rem; /* 32px */
    }
    
    .hero p {
        font-size: 1.125rem; /* 18px */
    }
    
    .contact-form {
        padding: 2.5rem; /* 40px */
    }
    
    .tab-content {
        padding: 2.5rem; /* 40px */
    }
    
    .modal-content {
        flex-direction: column;
    }
    
    .modal-image {
        min-height: 18.75rem; /* 300px */
    }

    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9375rem; /* 15px */
    }
    .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 100%; /* Keep 16px base */
    }
    
    .hero h1 {
        font-size: 2.25rem; /* 36px */
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.9375rem; /* 15px */
    }
    
    .btn {
        width: 100%;
    }
    
    
    .tab-btn {
        width: 100%;
    }
    
    .contact-form {
        padding: 1.875rem; /* 30px */
    }
    
    .section {
        padding: 4.375rem 0; /* 70px */
    }
    
    .section-header {
        margin-bottom: 3.125rem; /* 50px */
    }
    
    .section-title {
        font-size: 1.875rem; /* 30px */
    }
    
    .tab-content {
        padding: 1.875rem; /* 30px */
    }
    
    .social-proof {
        padding: 4.375rem 0; /* 70px */
    }
    
    body {
        padding-top: 3.75rem; /* 60px */
    }
}



